package com.czkt.service.impl;

import java.util.List;

import com.czkt.domain.ErpPurchaseLine;
import com.czkt.mapper.ErpPurchaseLineMapper;
import com.czkt.service.IErpPurchaseLineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 请购单明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-21
 */
@Service
public class ErpPurchaseLineServiceImpl implements IErpPurchaseLineService
{
    @Autowired
    private ErpPurchaseLineMapper erpPurchaseLineMapper;

    /**
     * 查询请购单明细
     * 
     * @param id 请购单明细主键
     * @return 请购单明细
     */
    @Override
    public ErpPurchaseLine selectErpPurchaseLineById(Long id)
    {
        return erpPurchaseLineMapper.selectErpPurchaseLineById(id);
    }

    /**
     * 查询请购单明细列表
     * 
     * @param erpPurchaseLine 请购单明细
     * @return 请购单明细
     */
    @Override
    public List<ErpPurchaseLine> selectErpPurchaseLineList(ErpPurchaseLine erpPurchaseLine)
    {
        return erpPurchaseLineMapper.selectErpPurchaseLineList(erpPurchaseLine);
    }

    /**
     * 新增请购单明细
     * 
     * @param erpPurchaseLine 请购单明细
     * @return 结果
     */
    @Override
    public int insertErpPurchaseLine(ErpPurchaseLine erpPurchaseLine)
    {
        return erpPurchaseLineMapper.insertErpPurchaseLine(erpPurchaseLine);
    }

    /**
     * 修改请购单明细
     * 
     * @param erpPurchaseLine 请购单明细
     * @return 结果
     */
    @Override
    public int updateErpPurchaseLine(ErpPurchaseLine erpPurchaseLine)
    {
        return erpPurchaseLineMapper.updateErpPurchaseLine(erpPurchaseLine);
    }

    /**
     * 批量删除请购单明细
     * 
     * @param ids 需要删除的请购单明细主键
     * @return 结果
     */
    @Override
    public int deleteErpPurchaseLineByIds(Long[] ids)
    {
        return erpPurchaseLineMapper.deleteErpPurchaseLineByIds(ids);
    }

    /**
     * 删除请购单明细信息
     * 
     * @param id 请购单明细主键
     * @return 结果
     */
    @Override
    public int deleteErpPurchaseLineById(Long id)
    {
        return erpPurchaseLineMapper.deleteErpPurchaseLineById(id);
    }
}
